package link.wangkui.io;

import cn.hutool.core.io.file.FileReader;
import cn.hutool.core.io.file.FileWriter;

public class TextFilter {
    public static void main(String[] args) {
        FileReader fileReader = new FileReader("C:\\Users\\王魁\\Documents\\Tencent Files\\673930458\\FileRecv\\MobileFile\\285182\\新顺1730.txt","GBK");
        String result = fileReader.readString();
        result = result.replaceAll("&#\\d+", "");
        FileWriter writer = new FileWriter("C:\\Users\\王魁\\Documents\\Tencent Files\\673930458\\FileRecv\\MobileFile\\285182\\新顺.txt");
        writer.write(result);
    }
}
